/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
"use strict";

var $protobuf = require("protobufjs/minimal");

// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});

$root.AftApplyOrder = (function() {

    /**
     * Properties of an AftApplyOrder.
     * @exports IAftApplyOrder
     * @interface IAftApplyOrder
     * @property {string|null} [uuid] AftApplyOrder uuid
     * @property {string|null} [upper] AftApplyOrder upper
     * @property {string|null} [validFlag] AftApplyOrder validFlag
     * @property {string|null} [creator] AftApplyOrder creator
     * @property {string|null} [createTime] AftApplyOrder createTime
     * @property {string|null} [creatorIp] AftApplyOrder creatorIp
     * @property {string|null} [lastModifier] AftApplyOrder lastModifier
     * @property {string|null} [lastModifyTime] AftApplyOrder lastModifyTime
     * @property {string|null} [lastModifierIp] AftApplyOrder lastModifierIp
     * @property {string|null} [ownerOrganize] AftApplyOrder ownerOrganize
     * @property {string|null} [ownerRole] AftApplyOrder ownerRole
     * @property {string|null} [serNum] AftApplyOrder serNum
     * @property {string|null} [serMemo] AftApplyOrder serMemo
     * @property {string|null} [serAudit] AftApplyOrder serAudit
     * @property {string|null} [serUsing] AftApplyOrder serUsing
     * @property {string|null} [serLabels] AftApplyOrder serLabels
     * @property {string|null} [serFileUrl] AftApplyOrder serFileUrl
     * @property {string|null} [serEditorContent] AftApplyOrder serEditorContent
     * @property {string|null} [serInputGroupData] AftApplyOrder serInputGroupData
     * @property {string|null} [afterSaleNo] AftApplyOrder afterSaleNo
     * @property {string|null} [serAfterSaleType] AftApplyOrder serAfterSaleType
     * @property {string|null} [serOrderId] AftApplyOrder serOrderId
     * @property {string|null} [serOrderNo] AftApplyOrder serOrderNo
     * @property {string|null} [serOrderStatus] AftApplyOrder serOrderStatus
     * @property {string|null} [serGoodsStatus] AftApplyOrder serGoodsStatus
     * @property {string|null} [receiverName] AftApplyOrder receiverName
     * @property {string|null} [receiverPhone] AftApplyOrder receiverPhone
     * @property {string|null} [AddressStr] AftApplyOrder AddressStr
     * @property {string|null} [AddressDetail] AftApplyOrder AddressDetail
     * @property {string|null} [userName] AftApplyOrder userName
     * @property {string|null} [serUserId] AftApplyOrder serUserId
     * @property {string|null} [serAuditState] AftApplyOrder serAuditState
     * @property {string|null} [serUserReason] AftApplyOrder serUserReason
     * @property {string|null} [serReviewReason] AftApplyOrder serReviewReason
     * @property {string|null} [serCreateTime] AftApplyOrder serCreateTime
     * @property {string|null} [serCoding] AftApplyOrder serCoding
     * @property {string|null} [serCount] AftApplyOrder serCount
     * @property {string|null} [serPayDate] AftApplyOrder serPayDate
     * @property {string|null} [serLogisticsNum] AftApplyOrder serLogisticsNum
     * @property {string|null} [serLogisticsCompany] AftApplyOrder serLogisticsCompany
     * @property {string|null} [serMoney] AftApplyOrder serMoney
     */

    /**
     * Constructs a new AftApplyOrder.
     * @exports AftApplyOrder
     * @classdesc Represents an AftApplyOrder.
     * @implements IAftApplyOrder
     * @constructor
     * @param {IAftApplyOrder=} [properties] Properties to set
     */
    function AftApplyOrder(properties) {
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * AftApplyOrder uuid.
     * @member {string} uuid
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.uuid = "";

    /**
     * AftApplyOrder upper.
     * @member {string} upper
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.upper = "";

    /**
     * AftApplyOrder validFlag.
     * @member {string} validFlag
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.validFlag = "";

    /**
     * AftApplyOrder creator.
     * @member {string} creator
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.creator = "";

    /**
     * AftApplyOrder createTime.
     * @member {string} createTime
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.createTime = "";

    /**
     * AftApplyOrder creatorIp.
     * @member {string} creatorIp
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.creatorIp = "";

    /**
     * AftApplyOrder lastModifier.
     * @member {string} lastModifier
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.lastModifier = "";

    /**
     * AftApplyOrder lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.lastModifyTime = "";

    /**
     * AftApplyOrder lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.lastModifierIp = "";

    /**
     * AftApplyOrder ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.ownerOrganize = "";

    /**
     * AftApplyOrder ownerRole.
     * @member {string} ownerRole
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.ownerRole = "";

    /**
     * AftApplyOrder serNum.
     * @member {string} serNum
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serNum = "";

    /**
     * AftApplyOrder serMemo.
     * @member {string} serMemo
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serMemo = "";

    /**
     * AftApplyOrder serAudit.
     * @member {string} serAudit
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serAudit = "";

    /**
     * AftApplyOrder serUsing.
     * @member {string} serUsing
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serUsing = "";

    /**
     * AftApplyOrder serLabels.
     * @member {string} serLabels
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serLabels = "";

    /**
     * AftApplyOrder serFileUrl.
     * @member {string} serFileUrl
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serFileUrl = "";

    /**
     * AftApplyOrder serEditorContent.
     * @member {string} serEditorContent
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serEditorContent = "";

    /**
     * AftApplyOrder serInputGroupData.
     * @member {string} serInputGroupData
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serInputGroupData = "";

    /**
     * AftApplyOrder afterSaleNo.
     * @member {string} afterSaleNo
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.afterSaleNo = "";

    /**
     * AftApplyOrder serAfterSaleType.
     * @member {string} serAfterSaleType
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serAfterSaleType = "";

    /**
     * AftApplyOrder serOrderId.
     * @member {string} serOrderId
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serOrderId = "";

    /**
     * AftApplyOrder serOrderNo.
     * @member {string} serOrderNo
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serOrderNo = "";

    /**
     * AftApplyOrder serOrderStatus.
     * @member {string} serOrderStatus
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serOrderStatus = "";

    /**
     * AftApplyOrder serGoodsStatus.
     * @member {string} serGoodsStatus
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serGoodsStatus = "";

    /**
     * AftApplyOrder receiverName.
     * @member {string} receiverName
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.receiverName = "";

    /**
     * AftApplyOrder receiverPhone.
     * @member {string} receiverPhone
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.receiverPhone = "";

    /**
     * AftApplyOrder AddressStr.
     * @member {string} AddressStr
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.AddressStr = "";

    /**
     * AftApplyOrder AddressDetail.
     * @member {string} AddressDetail
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.AddressDetail = "";

    /**
     * AftApplyOrder userName.
     * @member {string} userName
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.userName = "";

    /**
     * AftApplyOrder serUserId.
     * @member {string} serUserId
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serUserId = "";

    /**
     * AftApplyOrder serAuditState.
     * @member {string} serAuditState
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serAuditState = "";

    /**
     * AftApplyOrder serUserReason.
     * @member {string} serUserReason
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serUserReason = "";

    /**
     * AftApplyOrder serReviewReason.
     * @member {string} serReviewReason
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serReviewReason = "";

    /**
     * AftApplyOrder serCreateTime.
     * @member {string} serCreateTime
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serCreateTime = "";

    /**
     * AftApplyOrder serCoding.
     * @member {string} serCoding
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serCoding = "";

    /**
     * AftApplyOrder serCount.
     * @member {string} serCount
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serCount = "";

    /**
     * AftApplyOrder serPayDate.
     * @member {string} serPayDate
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serPayDate = "";

    /**
     * AftApplyOrder serLogisticsNum.
     * @member {string} serLogisticsNum
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serLogisticsNum = "";

    /**
     * AftApplyOrder serLogisticsCompany.
     * @member {string} serLogisticsCompany
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serLogisticsCompany = "";

    /**
     * AftApplyOrder serMoney.
     * @member {string} serMoney
     * @memberof AftApplyOrder
     * @instance
     */
    AftApplyOrder.prototype.serMoney = "";

    /**
     * Creates a new AftApplyOrder instance using the specified properties.
     * @function create
     * @memberof AftApplyOrder
     * @static
     * @param {IAftApplyOrder=} [properties] Properties to set
     * @returns {AftApplyOrder} AftApplyOrder instance
     */
    AftApplyOrder.create = function create(properties) {
        return new AftApplyOrder(properties);
    };

    /**
     * Encodes the specified AftApplyOrder message. Does not implicitly {@link AftApplyOrder.verify|verify} messages.
     * @function encode
     * @memberof AftApplyOrder
     * @static
     * @param {IAftApplyOrder} message AftApplyOrder message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrder.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            writer.uint32(/* id 17, wireType 2 =*/138).string(message.serFileUrl);
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.serEditorContent);
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.serInputGroupData);
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.afterSaleNo);
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.serAfterSaleType);
        if (message.serOrderId != null && message.hasOwnProperty("serOrderId"))
            writer.uint32(/* id 23, wireType 2 =*/186).string(message.serOrderId);
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            writer.uint32(/* id 24, wireType 2 =*/194).string(message.serOrderNo);
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.serOrderStatus);
        if (message.serGoodsStatus != null && message.hasOwnProperty("serGoodsStatus"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.serGoodsStatus);
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.receiverName);
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            writer.uint32(/* id 28, wireType 2 =*/226).string(message.receiverPhone);
        if (message.AddressStr != null && message.hasOwnProperty("AddressStr"))
            writer.uint32(/* id 29, wireType 2 =*/234).string(message.AddressStr);
        if (message.AddressDetail != null && message.hasOwnProperty("AddressDetail"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.AddressDetail);
        if (message.userName != null && message.hasOwnProperty("userName"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.userName);
        if (message.serUserId != null && message.hasOwnProperty("serUserId"))
            writer.uint32(/* id 32, wireType 2 =*/258).string(message.serUserId);
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            writer.uint32(/* id 33, wireType 2 =*/266).string(message.serAuditState);
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            writer.uint32(/* id 34, wireType 2 =*/274).string(message.serUserReason);
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            writer.uint32(/* id 35, wireType 2 =*/282).string(message.serReviewReason);
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            writer.uint32(/* id 36, wireType 2 =*/290).string(message.serCreateTime);
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            writer.uint32(/* id 37, wireType 2 =*/298).string(message.serCoding);
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            writer.uint32(/* id 38, wireType 2 =*/306).string(message.serCount);
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            writer.uint32(/* id 39, wireType 2 =*/314).string(message.serPayDate);
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            writer.uint32(/* id 40, wireType 2 =*/322).string(message.serLogisticsNum);
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            writer.uint32(/* id 41, wireType 2 =*/330).string(message.serLogisticsCompany);
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            writer.uint32(/* id 42, wireType 2 =*/338).string(message.serMoney);
        return writer;
    };

    /**
     * Encodes the specified AftApplyOrder message, length delimited. Does not implicitly {@link AftApplyOrder.verify|verify} messages.
     * @function encodeDelimited
     * @memberof AftApplyOrder
     * @static
     * @param {IAftApplyOrder} message AftApplyOrder message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrder.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an AftApplyOrder message from the specified reader or buffer.
     * @function decode
     * @memberof AftApplyOrder
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {AftApplyOrder} AftApplyOrder
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrder.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AftApplyOrder();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                message.serFileUrl = reader.string();
                break;
            case 18:
                message.serEditorContent = reader.string();
                break;
            case 19:
                message.serInputGroupData = reader.string();
                break;
            case 20:
                message.afterSaleNo = reader.string();
                break;
            case 21:
                message.serAfterSaleType = reader.string();
                break;
            case 23:
                message.serOrderId = reader.string();
                break;
            case 24:
                message.serOrderNo = reader.string();
                break;
            case 25:
                message.serOrderStatus = reader.string();
                break;
            case 26:
                message.serGoodsStatus = reader.string();
                break;
            case 27:
                message.receiverName = reader.string();
                break;
            case 28:
                message.receiverPhone = reader.string();
                break;
            case 29:
                message.AddressStr = reader.string();
                break;
            case 30:
                message.AddressDetail = reader.string();
                break;
            case 31:
                message.userName = reader.string();
                break;
            case 32:
                message.serUserId = reader.string();
                break;
            case 33:
                message.serAuditState = reader.string();
                break;
            case 34:
                message.serUserReason = reader.string();
                break;
            case 35:
                message.serReviewReason = reader.string();
                break;
            case 36:
                message.serCreateTime = reader.string();
                break;
            case 37:
                message.serCoding = reader.string();
                break;
            case 38:
                message.serCount = reader.string();
                break;
            case 39:
                message.serPayDate = reader.string();
                break;
            case 40:
                message.serLogisticsNum = reader.string();
                break;
            case 41:
                message.serLogisticsCompany = reader.string();
                break;
            case 42:
                message.serMoney = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes an AftApplyOrder message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof AftApplyOrder
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {AftApplyOrder} AftApplyOrder
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrder.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an AftApplyOrder message.
     * @function verify
     * @memberof AftApplyOrder
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    AftApplyOrder.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            if (!$util.isString(message.serFileUrl))
                return "serFileUrl: string expected";
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            if (!$util.isString(message.serEditorContent))
                return "serEditorContent: string expected";
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            if (!$util.isString(message.serInputGroupData))
                return "serInputGroupData: string expected";
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            if (!$util.isString(message.afterSaleNo))
                return "afterSaleNo: string expected";
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            if (!$util.isString(message.serAfterSaleType))
                return "serAfterSaleType: string expected";
        if (message.serOrderId != null && message.hasOwnProperty("serOrderId"))
            if (!$util.isString(message.serOrderId))
                return "serOrderId: string expected";
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            if (!$util.isString(message.serOrderNo))
                return "serOrderNo: string expected";
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            if (!$util.isString(message.serOrderStatus))
                return "serOrderStatus: string expected";
        if (message.serGoodsStatus != null && message.hasOwnProperty("serGoodsStatus"))
            if (!$util.isString(message.serGoodsStatus))
                return "serGoodsStatus: string expected";
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            if (!$util.isString(message.receiverName))
                return "receiverName: string expected";
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            if (!$util.isString(message.receiverPhone))
                return "receiverPhone: string expected";
        if (message.AddressStr != null && message.hasOwnProperty("AddressStr"))
            if (!$util.isString(message.AddressStr))
                return "AddressStr: string expected";
        if (message.AddressDetail != null && message.hasOwnProperty("AddressDetail"))
            if (!$util.isString(message.AddressDetail))
                return "AddressDetail: string expected";
        if (message.userName != null && message.hasOwnProperty("userName"))
            if (!$util.isString(message.userName))
                return "userName: string expected";
        if (message.serUserId != null && message.hasOwnProperty("serUserId"))
            if (!$util.isString(message.serUserId))
                return "serUserId: string expected";
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            if (!$util.isString(message.serAuditState))
                return "serAuditState: string expected";
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            if (!$util.isString(message.serUserReason))
                return "serUserReason: string expected";
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            if (!$util.isString(message.serReviewReason))
                return "serReviewReason: string expected";
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            if (!$util.isString(message.serCreateTime))
                return "serCreateTime: string expected";
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            if (!$util.isString(message.serCoding))
                return "serCoding: string expected";
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            if (!$util.isString(message.serCount))
                return "serCount: string expected";
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            if (!$util.isString(message.serPayDate))
                return "serPayDate: string expected";
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            if (!$util.isString(message.serLogisticsNum))
                return "serLogisticsNum: string expected";
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            if (!$util.isString(message.serLogisticsCompany))
                return "serLogisticsCompany: string expected";
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            if (!$util.isString(message.serMoney))
                return "serMoney: string expected";
        return null;
    };

    /**
     * Creates an AftApplyOrder message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof AftApplyOrder
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {AftApplyOrder} AftApplyOrder
     */
    AftApplyOrder.fromObject = function fromObject(object) {
        if (object instanceof $root.AftApplyOrder)
            return object;
        var message = new $root.AftApplyOrder();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.serFileUrl != null)
            message.serFileUrl = String(object.serFileUrl);
        if (object.serEditorContent != null)
            message.serEditorContent = String(object.serEditorContent);
        if (object.serInputGroupData != null)
            message.serInputGroupData = String(object.serInputGroupData);
        if (object.afterSaleNo != null)
            message.afterSaleNo = String(object.afterSaleNo);
        if (object.serAfterSaleType != null)
            message.serAfterSaleType = String(object.serAfterSaleType);
        if (object.serOrderId != null)
            message.serOrderId = String(object.serOrderId);
        if (object.serOrderNo != null)
            message.serOrderNo = String(object.serOrderNo);
        if (object.serOrderStatus != null)
            message.serOrderStatus = String(object.serOrderStatus);
        if (object.serGoodsStatus != null)
            message.serGoodsStatus = String(object.serGoodsStatus);
        if (object.receiverName != null)
            message.receiverName = String(object.receiverName);
        if (object.receiverPhone != null)
            message.receiverPhone = String(object.receiverPhone);
        if (object.AddressStr != null)
            message.AddressStr = String(object.AddressStr);
        if (object.AddressDetail != null)
            message.AddressDetail = String(object.AddressDetail);
        if (object.userName != null)
            message.userName = String(object.userName);
        if (object.serUserId != null)
            message.serUserId = String(object.serUserId);
        if (object.serAuditState != null)
            message.serAuditState = String(object.serAuditState);
        if (object.serUserReason != null)
            message.serUserReason = String(object.serUserReason);
        if (object.serReviewReason != null)
            message.serReviewReason = String(object.serReviewReason);
        if (object.serCreateTime != null)
            message.serCreateTime = String(object.serCreateTime);
        if (object.serCoding != null)
            message.serCoding = String(object.serCoding);
        if (object.serCount != null)
            message.serCount = String(object.serCount);
        if (object.serPayDate != null)
            message.serPayDate = String(object.serPayDate);
        if (object.serLogisticsNum != null)
            message.serLogisticsNum = String(object.serLogisticsNum);
        if (object.serLogisticsCompany != null)
            message.serLogisticsCompany = String(object.serLogisticsCompany);
        if (object.serMoney != null)
            message.serMoney = String(object.serMoney);
        return message;
    };

    /**
     * Creates a plain object from an AftApplyOrder message. Also converts values to other types if specified.
     * @function toObject
     * @memberof AftApplyOrder
     * @static
     * @param {AftApplyOrder} message AftApplyOrder
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    AftApplyOrder.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.serFileUrl = "";
            object.serEditorContent = "";
            object.serInputGroupData = "";
            object.afterSaleNo = "";
            object.serAfterSaleType = "";
            object.serOrderId = "";
            object.serOrderNo = "";
            object.serOrderStatus = "";
            object.serGoodsStatus = "";
            object.receiverName = "";
            object.receiverPhone = "";
            object.AddressStr = "";
            object.AddressDetail = "";
            object.userName = "";
            object.serUserId = "";
            object.serAuditState = "";
            object.serUserReason = "";
            object.serReviewReason = "";
            object.serCreateTime = "";
            object.serCoding = "";
            object.serCount = "";
            object.serPayDate = "";
            object.serLogisticsNum = "";
            object.serLogisticsCompany = "";
            object.serMoney = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl"))
            object.serFileUrl = message.serFileUrl;
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent"))
            object.serEditorContent = message.serEditorContent;
        if (message.serInputGroupData != null && message.hasOwnProperty("serInputGroupData"))
            object.serInputGroupData = message.serInputGroupData;
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            object.afterSaleNo = message.afterSaleNo;
        if (message.serAfterSaleType != null && message.hasOwnProperty("serAfterSaleType"))
            object.serAfterSaleType = message.serAfterSaleType;
        if (message.serOrderId != null && message.hasOwnProperty("serOrderId"))
            object.serOrderId = message.serOrderId;
        if (message.serOrderNo != null && message.hasOwnProperty("serOrderNo"))
            object.serOrderNo = message.serOrderNo;
        if (message.serOrderStatus != null && message.hasOwnProperty("serOrderStatus"))
            object.serOrderStatus = message.serOrderStatus;
        if (message.serGoodsStatus != null && message.hasOwnProperty("serGoodsStatus"))
            object.serGoodsStatus = message.serGoodsStatus;
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            object.receiverName = message.receiverName;
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            object.receiverPhone = message.receiverPhone;
        if (message.AddressStr != null && message.hasOwnProperty("AddressStr"))
            object.AddressStr = message.AddressStr;
        if (message.AddressDetail != null && message.hasOwnProperty("AddressDetail"))
            object.AddressDetail = message.AddressDetail;
        if (message.userName != null && message.hasOwnProperty("userName"))
            object.userName = message.userName;
        if (message.serUserId != null && message.hasOwnProperty("serUserId"))
            object.serUserId = message.serUserId;
        if (message.serAuditState != null && message.hasOwnProperty("serAuditState"))
            object.serAuditState = message.serAuditState;
        if (message.serUserReason != null && message.hasOwnProperty("serUserReason"))
            object.serUserReason = message.serUserReason;
        if (message.serReviewReason != null && message.hasOwnProperty("serReviewReason"))
            object.serReviewReason = message.serReviewReason;
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            object.serCreateTime = message.serCreateTime;
        if (message.serCoding != null && message.hasOwnProperty("serCoding"))
            object.serCoding = message.serCoding;
        if (message.serCount != null && message.hasOwnProperty("serCount"))
            object.serCount = message.serCount;
        if (message.serPayDate != null && message.hasOwnProperty("serPayDate"))
            object.serPayDate = message.serPayDate;
        if (message.serLogisticsNum != null && message.hasOwnProperty("serLogisticsNum"))
            object.serLogisticsNum = message.serLogisticsNum;
        if (message.serLogisticsCompany != null && message.hasOwnProperty("serLogisticsCompany"))
            object.serLogisticsCompany = message.serLogisticsCompany;
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            object.serMoney = message.serMoney;
        return object;
    };

    /**
     * Converts this AftApplyOrder to JSON.
     * @function toJSON
     * @memberof AftApplyOrder
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    AftApplyOrder.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return AftApplyOrder;
})();

$root.AftApplyOrderCondition = (function() {

    /**
     * Properties of an AftApplyOrderCondition.
     * @exports IAftApplyOrderCondition
     * @interface IAftApplyOrderCondition
     * @property {string|null} [uuid] AftApplyOrderCondition uuid
     * @property {string|null} [upper] AftApplyOrderCondition upper
     * @property {string|null} [validFlag] AftApplyOrderCondition validFlag
     * @property {string|null} [creator] AftApplyOrderCondition creator
     * @property {string|null} [createTime] AftApplyOrderCondition createTime
     * @property {string|null} [creatorIp] AftApplyOrderCondition creatorIp
     * @property {string|null} [lastModifier] AftApplyOrderCondition lastModifier
     * @property {string|null} [lastModifyTime] AftApplyOrderCondition lastModifyTime
     * @property {string|null} [lastModifierIp] AftApplyOrderCondition lastModifierIp
     * @property {string|null} [ownerOrganize] AftApplyOrderCondition ownerOrganize
     * @property {string|null} [ownerRole] AftApplyOrderCondition ownerRole
     * @property {string|null} [serNum] AftApplyOrderCondition serNum
     * @property {string|null} [serMemo] AftApplyOrderCondition serMemo
     * @property {string|null} [serAudit] AftApplyOrderCondition serAudit
     * @property {string|null} [serUsing] AftApplyOrderCondition serUsing
     * @property {string|null} [serLabels] AftApplyOrderCondition serLabels
     * @property {Array.<string>|null} [uuidList] AftApplyOrderCondition uuidList
     * @property {string|null} [createTimeOUTSET] AftApplyOrderCondition createTimeOUTSET
     * @property {string|null} [createTimeFINISH] AftApplyOrderCondition createTimeFINISH
     * @property {string|null} [lastModifyTimeOUTSET] AftApplyOrderCondition lastModifyTimeOUTSET
     * @property {string|null} [lastModifyTimeFINISH] AftApplyOrderCondition lastModifyTimeFINISH
     * @property {Array.<string>|null} [serAuditList] AftApplyOrderCondition serAuditList
     * @property {Array.<string>|null} [serFileUrl] AftApplyOrderCondition serFileUrl
     * @property {Array.<string>|null} [serEditorContent] AftApplyOrderCondition serEditorContent
     * @property {string|null} [afterNo] AftApplyOrderCondition afterNo
     * @property {string|null} [phone] AftApplyOrderCondition phone
     * @property {string|null} [orderStatus] AftApplyOrderCondition orderStatus
     * @property {string|null} [afterSaleNo] AftApplyOrderCondition afterSaleNo
     * @property {Array.<string>|null} [serAuditStateList] AftApplyOrderCondition serAuditStateList
     * @property {string|null} [serCreateTime] AftApplyOrderCondition serCreateTime
     * @property {string|null} [serTotalFeeLeft] AftApplyOrderCondition serTotalFeeLeft
     * @property {string|null} [serTotalFeeRight] AftApplyOrderCondition serTotalFeeRight
     * @property {string|null} [serMoney] AftApplyOrderCondition serMoney
     * @property {string|null} [serMoneyLeft] AftApplyOrderCondition serMoneyLeft
     * @property {string|null} [serMoneyRight] AftApplyOrderCondition serMoneyRight
     * @property {string|null} [receiverPhone] AftApplyOrderCondition receiverPhone
     * @property {string|null} [receiverName] AftApplyOrderCondition receiverName
     */

    /**
     * Constructs a new AftApplyOrderCondition.
     * @exports AftApplyOrderCondition
     * @classdesc Represents an AftApplyOrderCondition.
     * @implements IAftApplyOrderCondition
     * @constructor
     * @param {IAftApplyOrderCondition=} [properties] Properties to set
     */
    function AftApplyOrderCondition(properties) {
        this.uuidList = [];
        this.serAuditList = [];
        this.serFileUrl = [];
        this.serEditorContent = [];
        this.serAuditStateList = [];
        if (properties)
            for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
                if (properties[keys[i]] != null)
                    this[keys[i]] = properties[keys[i]];
    }

    /**
     * AftApplyOrderCondition uuid.
     * @member {string} uuid
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.uuid = "";

    /**
     * AftApplyOrderCondition upper.
     * @member {string} upper
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.upper = "";

    /**
     * AftApplyOrderCondition validFlag.
     * @member {string} validFlag
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.validFlag = "";

    /**
     * AftApplyOrderCondition creator.
     * @member {string} creator
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.creator = "";

    /**
     * AftApplyOrderCondition createTime.
     * @member {string} createTime
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.createTime = "";

    /**
     * AftApplyOrderCondition creatorIp.
     * @member {string} creatorIp
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.creatorIp = "";

    /**
     * AftApplyOrderCondition lastModifier.
     * @member {string} lastModifier
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.lastModifier = "";

    /**
     * AftApplyOrderCondition lastModifyTime.
     * @member {string} lastModifyTime
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.lastModifyTime = "";

    /**
     * AftApplyOrderCondition lastModifierIp.
     * @member {string} lastModifierIp
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.lastModifierIp = "";

    /**
     * AftApplyOrderCondition ownerOrganize.
     * @member {string} ownerOrganize
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.ownerOrganize = "";

    /**
     * AftApplyOrderCondition ownerRole.
     * @member {string} ownerRole
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.ownerRole = "";

    /**
     * AftApplyOrderCondition serNum.
     * @member {string} serNum
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serNum = "";

    /**
     * AftApplyOrderCondition serMemo.
     * @member {string} serMemo
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serMemo = "";

    /**
     * AftApplyOrderCondition serAudit.
     * @member {string} serAudit
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serAudit = "";

    /**
     * AftApplyOrderCondition serUsing.
     * @member {string} serUsing
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serUsing = "";

    /**
     * AftApplyOrderCondition serLabels.
     * @member {string} serLabels
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serLabels = "";

    /**
     * AftApplyOrderCondition uuidList.
     * @member {Array.<string>} uuidList
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.uuidList = $util.emptyArray;

    /**
     * AftApplyOrderCondition createTimeOUTSET.
     * @member {string} createTimeOUTSET
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.createTimeOUTSET = "";

    /**
     * AftApplyOrderCondition createTimeFINISH.
     * @member {string} createTimeFINISH
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.createTimeFINISH = "";

    /**
     * AftApplyOrderCondition lastModifyTimeOUTSET.
     * @member {string} lastModifyTimeOUTSET
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.lastModifyTimeOUTSET = "";

    /**
     * AftApplyOrderCondition lastModifyTimeFINISH.
     * @member {string} lastModifyTimeFINISH
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.lastModifyTimeFINISH = "";

    /**
     * AftApplyOrderCondition serAuditList.
     * @member {Array.<string>} serAuditList
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serAuditList = $util.emptyArray;

    /**
     * AftApplyOrderCondition serFileUrl.
     * @member {Array.<string>} serFileUrl
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serFileUrl = $util.emptyArray;

    /**
     * AftApplyOrderCondition serEditorContent.
     * @member {Array.<string>} serEditorContent
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serEditorContent = $util.emptyArray;

    /**
     * AftApplyOrderCondition afterNo.
     * @member {string} afterNo
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.afterNo = "";

    /**
     * AftApplyOrderCondition phone.
     * @member {string} phone
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.phone = "";

    /**
     * AftApplyOrderCondition orderStatus.
     * @member {string} orderStatus
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.orderStatus = "";

    /**
     * AftApplyOrderCondition afterSaleNo.
     * @member {string} afterSaleNo
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.afterSaleNo = "";

    /**
     * AftApplyOrderCondition serAuditStateList.
     * @member {Array.<string>} serAuditStateList
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serAuditStateList = $util.emptyArray;

    /**
     * AftApplyOrderCondition serCreateTime.
     * @member {string} serCreateTime
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serCreateTime = "";

    /**
     * AftApplyOrderCondition serTotalFeeLeft.
     * @member {string} serTotalFeeLeft
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serTotalFeeLeft = "";

    /**
     * AftApplyOrderCondition serTotalFeeRight.
     * @member {string} serTotalFeeRight
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serTotalFeeRight = "";

    /**
     * AftApplyOrderCondition serMoney.
     * @member {string} serMoney
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serMoney = "";

    /**
     * AftApplyOrderCondition serMoneyLeft.
     * @member {string} serMoneyLeft
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serMoneyLeft = "";

    /**
     * AftApplyOrderCondition serMoneyRight.
     * @member {string} serMoneyRight
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.serMoneyRight = "";

    /**
     * AftApplyOrderCondition receiverPhone.
     * @member {string} receiverPhone
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.receiverPhone = "";

    /**
     * AftApplyOrderCondition receiverName.
     * @member {string} receiverName
     * @memberof AftApplyOrderCondition
     * @instance
     */
    AftApplyOrderCondition.prototype.receiverName = "";

    /**
     * Creates a new AftApplyOrderCondition instance using the specified properties.
     * @function create
     * @memberof AftApplyOrderCondition
     * @static
     * @param {IAftApplyOrderCondition=} [properties] Properties to set
     * @returns {AftApplyOrderCondition} AftApplyOrderCondition instance
     */
    AftApplyOrderCondition.create = function create(properties) {
        return new AftApplyOrderCondition(properties);
    };

    /**
     * Encodes the specified AftApplyOrderCondition message. Does not implicitly {@link AftApplyOrderCondition.verify|verify} messages.
     * @function encode
     * @memberof AftApplyOrderCondition
     * @static
     * @param {IAftApplyOrderCondition} message AftApplyOrderCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderCondition.encode = function encode(message, writer) {
        if (!writer)
            writer = $Writer.create();
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            writer.uint32(/* id 1, wireType 2 =*/10).string(message.uuid);
        if (message.upper != null && message.hasOwnProperty("upper"))
            writer.uint32(/* id 2, wireType 2 =*/18).string(message.upper);
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            writer.uint32(/* id 3, wireType 2 =*/26).string(message.validFlag);
        if (message.creator != null && message.hasOwnProperty("creator"))
            writer.uint32(/* id 4, wireType 2 =*/34).string(message.creator);
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            writer.uint32(/* id 5, wireType 2 =*/42).string(message.createTime);
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            writer.uint32(/* id 6, wireType 2 =*/50).string(message.creatorIp);
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModifier);
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            writer.uint32(/* id 8, wireType 2 =*/66).string(message.lastModifyTime);
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            writer.uint32(/* id 9, wireType 2 =*/74).string(message.lastModifierIp);
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerOrganize);
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            writer.uint32(/* id 11, wireType 2 =*/90).string(message.ownerRole);
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            writer.uint32(/* id 12, wireType 2 =*/98).string(message.serNum);
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            writer.uint32(/* id 13, wireType 2 =*/106).string(message.serMemo);
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            writer.uint32(/* id 14, wireType 2 =*/114).string(message.serAudit);
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            writer.uint32(/* id 15, wireType 2 =*/122).string(message.serUsing);
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            writer.uint32(/* id 16, wireType 2 =*/130).string(message.serLabels);
        if (message.uuidList != null && message.uuidList.length)
            for (var i = 0; i < message.uuidList.length; ++i)
                writer.uint32(/* id 17, wireType 2 =*/138).string(message.uuidList[i]);
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            writer.uint32(/* id 18, wireType 2 =*/146).string(message.createTimeOUTSET);
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            writer.uint32(/* id 19, wireType 2 =*/154).string(message.createTimeFINISH);
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            writer.uint32(/* id 20, wireType 2 =*/162).string(message.lastModifyTimeOUTSET);
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            writer.uint32(/* id 21, wireType 2 =*/170).string(message.lastModifyTimeFINISH);
        if (message.serAuditList != null && message.serAuditList.length)
            for (var i = 0; i < message.serAuditList.length; ++i)
                writer.uint32(/* id 22, wireType 2 =*/178).string(message.serAuditList[i]);
        if (message.serFileUrl != null && message.serFileUrl.length)
            for (var i = 0; i < message.serFileUrl.length; ++i)
                writer.uint32(/* id 23, wireType 2 =*/186).string(message.serFileUrl[i]);
        if (message.serEditorContent != null && message.serEditorContent.length)
            for (var i = 0; i < message.serEditorContent.length; ++i)
                writer.uint32(/* id 24, wireType 2 =*/194).string(message.serEditorContent[i]);
        if (message.afterNo != null && message.hasOwnProperty("afterNo"))
            writer.uint32(/* id 25, wireType 2 =*/202).string(message.afterNo);
        if (message.phone != null && message.hasOwnProperty("phone"))
            writer.uint32(/* id 26, wireType 2 =*/210).string(message.phone);
        if (message.orderStatus != null && message.hasOwnProperty("orderStatus"))
            writer.uint32(/* id 27, wireType 2 =*/218).string(message.orderStatus);
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            writer.uint32(/* id 28, wireType 2 =*/226).string(message.afterSaleNo);
        if (message.serAuditStateList != null && message.serAuditStateList.length)
            for (var i = 0; i < message.serAuditStateList.length; ++i)
                writer.uint32(/* id 29, wireType 2 =*/234).string(message.serAuditStateList[i]);
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            writer.uint32(/* id 30, wireType 2 =*/242).string(message.serCreateTime);
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            writer.uint32(/* id 31, wireType 2 =*/250).string(message.serTotalFeeLeft);
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            writer.uint32(/* id 32, wireType 2 =*/258).string(message.serTotalFeeRight);
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            writer.uint32(/* id 33, wireType 2 =*/266).string(message.serMoney);
        if (message.serMoneyLeft != null && message.hasOwnProperty("serMoneyLeft"))
            writer.uint32(/* id 34, wireType 2 =*/274).string(message.serMoneyLeft);
        if (message.serMoneyRight != null && message.hasOwnProperty("serMoneyRight"))
            writer.uint32(/* id 35, wireType 2 =*/282).string(message.serMoneyRight);
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            writer.uint32(/* id 36, wireType 2 =*/290).string(message.receiverPhone);
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            writer.uint32(/* id 37, wireType 2 =*/298).string(message.receiverName);
        return writer;
    };

    /**
     * Encodes the specified AftApplyOrderCondition message, length delimited. Does not implicitly {@link AftApplyOrderCondition.verify|verify} messages.
     * @function encodeDelimited
     * @memberof AftApplyOrderCondition
     * @static
     * @param {IAftApplyOrderCondition} message AftApplyOrderCondition message or plain object to encode
     * @param {$protobuf.Writer} [writer] Writer to encode to
     * @returns {$protobuf.Writer} Writer
     */
    AftApplyOrderCondition.encodeDelimited = function encodeDelimited(message, writer) {
        return this.encode(message, writer).ldelim();
    };

    /**
     * Decodes an AftApplyOrderCondition message from the specified reader or buffer.
     * @function decode
     * @memberof AftApplyOrderCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @param {number} [length] Message length if known beforehand
     * @returns {AftApplyOrderCondition} AftApplyOrderCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderCondition.decode = function decode(reader, length) {
        if (!(reader instanceof $Reader))
            reader = $Reader.create(reader);
        var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AftApplyOrderCondition();
        while (reader.pos < end) {
            var tag = reader.uint32();
            switch (tag >>> 3) {
            case 1:
                message.uuid = reader.string();
                break;
            case 2:
                message.upper = reader.string();
                break;
            case 3:
                message.validFlag = reader.string();
                break;
            case 4:
                message.creator = reader.string();
                break;
            case 5:
                message.createTime = reader.string();
                break;
            case 6:
                message.creatorIp = reader.string();
                break;
            case 7:
                message.lastModifier = reader.string();
                break;
            case 8:
                message.lastModifyTime = reader.string();
                break;
            case 9:
                message.lastModifierIp = reader.string();
                break;
            case 10:
                message.ownerOrganize = reader.string();
                break;
            case 11:
                message.ownerRole = reader.string();
                break;
            case 12:
                message.serNum = reader.string();
                break;
            case 13:
                message.serMemo = reader.string();
                break;
            case 14:
                message.serAudit = reader.string();
                break;
            case 15:
                message.serUsing = reader.string();
                break;
            case 16:
                message.serLabels = reader.string();
                break;
            case 17:
                if (!(message.uuidList && message.uuidList.length))
                    message.uuidList = [];
                message.uuidList.push(reader.string());
                break;
            case 18:
                message.createTimeOUTSET = reader.string();
                break;
            case 19:
                message.createTimeFINISH = reader.string();
                break;
            case 20:
                message.lastModifyTimeOUTSET = reader.string();
                break;
            case 21:
                message.lastModifyTimeFINISH = reader.string();
                break;
            case 22:
                if (!(message.serAuditList && message.serAuditList.length))
                    message.serAuditList = [];
                message.serAuditList.push(reader.string());
                break;
            case 23:
                if (!(message.serFileUrl && message.serFileUrl.length))
                    message.serFileUrl = [];
                message.serFileUrl.push(reader.string());
                break;
            case 24:
                if (!(message.serEditorContent && message.serEditorContent.length))
                    message.serEditorContent = [];
                message.serEditorContent.push(reader.string());
                break;
            case 25:
                message.afterNo = reader.string();
                break;
            case 26:
                message.phone = reader.string();
                break;
            case 27:
                message.orderStatus = reader.string();
                break;
            case 28:
                message.afterSaleNo = reader.string();
                break;
            case 29:
                if (!(message.serAuditStateList && message.serAuditStateList.length))
                    message.serAuditStateList = [];
                message.serAuditStateList.push(reader.string());
                break;
            case 30:
                message.serCreateTime = reader.string();
                break;
            case 31:
                message.serTotalFeeLeft = reader.string();
                break;
            case 32:
                message.serTotalFeeRight = reader.string();
                break;
            case 33:
                message.serMoney = reader.string();
                break;
            case 34:
                message.serMoneyLeft = reader.string();
                break;
            case 35:
                message.serMoneyRight = reader.string();
                break;
            case 36:
                message.receiverPhone = reader.string();
                break;
            case 37:
                message.receiverName = reader.string();
                break;
            default:
                reader.skipType(tag & 7);
                break;
            }
        }
        return message;
    };

    /**
     * Decodes an AftApplyOrderCondition message from the specified reader or buffer, length delimited.
     * @function decodeDelimited
     * @memberof AftApplyOrderCondition
     * @static
     * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
     * @returns {AftApplyOrderCondition} AftApplyOrderCondition
     * @throws {Error} If the payload is not a reader or valid buffer
     * @throws {$protobuf.util.ProtocolError} If required fields are missing
     */
    AftApplyOrderCondition.decodeDelimited = function decodeDelimited(reader) {
        if (!(reader instanceof $Reader))
            reader = new $Reader(reader);
        return this.decode(reader, reader.uint32());
    };

    /**
     * Verifies an AftApplyOrderCondition message.
     * @function verify
     * @memberof AftApplyOrderCondition
     * @static
     * @param {Object.<string,*>} message Plain object to verify
     * @returns {string|null} `null` if valid, otherwise the reason why it is not
     */
    AftApplyOrderCondition.verify = function verify(message) {
        if (typeof message !== "object" || message === null)
            return "object expected";
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            if (!$util.isString(message.uuid))
                return "uuid: string expected";
        if (message.upper != null && message.hasOwnProperty("upper"))
            if (!$util.isString(message.upper))
                return "upper: string expected";
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            if (!$util.isString(message.validFlag))
                return "validFlag: string expected";
        if (message.creator != null && message.hasOwnProperty("creator"))
            if (!$util.isString(message.creator))
                return "creator: string expected";
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            if (!$util.isString(message.createTime))
                return "createTime: string expected";
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            if (!$util.isString(message.creatorIp))
                return "creatorIp: string expected";
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            if (!$util.isString(message.lastModifier))
                return "lastModifier: string expected";
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            if (!$util.isString(message.lastModifyTime))
                return "lastModifyTime: string expected";
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            if (!$util.isString(message.lastModifierIp))
                return "lastModifierIp: string expected";
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            if (!$util.isString(message.ownerOrganize))
                return "ownerOrganize: string expected";
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            if (!$util.isString(message.ownerRole))
                return "ownerRole: string expected";
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            if (!$util.isString(message.serNum))
                return "serNum: string expected";
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            if (!$util.isString(message.serMemo))
                return "serMemo: string expected";
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            if (!$util.isString(message.serAudit))
                return "serAudit: string expected";
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            if (!$util.isString(message.serUsing))
                return "serUsing: string expected";
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            if (!$util.isString(message.serLabels))
                return "serLabels: string expected";
        if (message.uuidList != null && message.hasOwnProperty("uuidList")) {
            if (!Array.isArray(message.uuidList))
                return "uuidList: array expected";
            for (var i = 0; i < message.uuidList.length; ++i)
                if (!$util.isString(message.uuidList[i]))
                    return "uuidList: string[] expected";
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            if (!$util.isString(message.createTimeOUTSET))
                return "createTimeOUTSET: string expected";
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            if (!$util.isString(message.createTimeFINISH))
                return "createTimeFINISH: string expected";
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            if (!$util.isString(message.lastModifyTimeOUTSET))
                return "lastModifyTimeOUTSET: string expected";
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            if (!$util.isString(message.lastModifyTimeFINISH))
                return "lastModifyTimeFINISH: string expected";
        if (message.serAuditList != null && message.hasOwnProperty("serAuditList")) {
            if (!Array.isArray(message.serAuditList))
                return "serAuditList: array expected";
            for (var i = 0; i < message.serAuditList.length; ++i)
                if (!$util.isString(message.serAuditList[i]))
                    return "serAuditList: string[] expected";
        }
        if (message.serFileUrl != null && message.hasOwnProperty("serFileUrl")) {
            if (!Array.isArray(message.serFileUrl))
                return "serFileUrl: array expected";
            for (var i = 0; i < message.serFileUrl.length; ++i)
                if (!$util.isString(message.serFileUrl[i]))
                    return "serFileUrl: string[] expected";
        }
        if (message.serEditorContent != null && message.hasOwnProperty("serEditorContent")) {
            if (!Array.isArray(message.serEditorContent))
                return "serEditorContent: array expected";
            for (var i = 0; i < message.serEditorContent.length; ++i)
                if (!$util.isString(message.serEditorContent[i]))
                    return "serEditorContent: string[] expected";
        }
        if (message.afterNo != null && message.hasOwnProperty("afterNo"))
            if (!$util.isString(message.afterNo))
                return "afterNo: string expected";
        if (message.phone != null && message.hasOwnProperty("phone"))
            if (!$util.isString(message.phone))
                return "phone: string expected";
        if (message.orderStatus != null && message.hasOwnProperty("orderStatus"))
            if (!$util.isString(message.orderStatus))
                return "orderStatus: string expected";
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            if (!$util.isString(message.afterSaleNo))
                return "afterSaleNo: string expected";
        if (message.serAuditStateList != null && message.hasOwnProperty("serAuditStateList")) {
            if (!Array.isArray(message.serAuditStateList))
                return "serAuditStateList: array expected";
            for (var i = 0; i < message.serAuditStateList.length; ++i)
                if (!$util.isString(message.serAuditStateList[i]))
                    return "serAuditStateList: string[] expected";
        }
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            if (!$util.isString(message.serCreateTime))
                return "serCreateTime: string expected";
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            if (!$util.isString(message.serTotalFeeLeft))
                return "serTotalFeeLeft: string expected";
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            if (!$util.isString(message.serTotalFeeRight))
                return "serTotalFeeRight: string expected";
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            if (!$util.isString(message.serMoney))
                return "serMoney: string expected";
        if (message.serMoneyLeft != null && message.hasOwnProperty("serMoneyLeft"))
            if (!$util.isString(message.serMoneyLeft))
                return "serMoneyLeft: string expected";
        if (message.serMoneyRight != null && message.hasOwnProperty("serMoneyRight"))
            if (!$util.isString(message.serMoneyRight))
                return "serMoneyRight: string expected";
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            if (!$util.isString(message.receiverPhone))
                return "receiverPhone: string expected";
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            if (!$util.isString(message.receiverName))
                return "receiverName: string expected";
        return null;
    };

    /**
     * Creates an AftApplyOrderCondition message from a plain object. Also converts values to their respective internal types.
     * @function fromObject
     * @memberof AftApplyOrderCondition
     * @static
     * @param {Object.<string,*>} object Plain object
     * @returns {AftApplyOrderCondition} AftApplyOrderCondition
     */
    AftApplyOrderCondition.fromObject = function fromObject(object) {
        if (object instanceof $root.AftApplyOrderCondition)
            return object;
        var message = new $root.AftApplyOrderCondition();
        if (object.uuid != null)
            message.uuid = String(object.uuid);
        if (object.upper != null)
            message.upper = String(object.upper);
        if (object.validFlag != null)
            message.validFlag = String(object.validFlag);
        if (object.creator != null)
            message.creator = String(object.creator);
        if (object.createTime != null)
            message.createTime = String(object.createTime);
        if (object.creatorIp != null)
            message.creatorIp = String(object.creatorIp);
        if (object.lastModifier != null)
            message.lastModifier = String(object.lastModifier);
        if (object.lastModifyTime != null)
            message.lastModifyTime = String(object.lastModifyTime);
        if (object.lastModifierIp != null)
            message.lastModifierIp = String(object.lastModifierIp);
        if (object.ownerOrganize != null)
            message.ownerOrganize = String(object.ownerOrganize);
        if (object.ownerRole != null)
            message.ownerRole = String(object.ownerRole);
        if (object.serNum != null)
            message.serNum = String(object.serNum);
        if (object.serMemo != null)
            message.serMemo = String(object.serMemo);
        if (object.serAudit != null)
            message.serAudit = String(object.serAudit);
        if (object.serUsing != null)
            message.serUsing = String(object.serUsing);
        if (object.serLabels != null)
            message.serLabels = String(object.serLabels);
        if (object.uuidList) {
            if (!Array.isArray(object.uuidList))
                throw TypeError(".AftApplyOrderCondition.uuidList: array expected");
            message.uuidList = [];
            for (var i = 0; i < object.uuidList.length; ++i)
                message.uuidList[i] = String(object.uuidList[i]);
        }
        if (object.createTimeOUTSET != null)
            message.createTimeOUTSET = String(object.createTimeOUTSET);
        if (object.createTimeFINISH != null)
            message.createTimeFINISH = String(object.createTimeFINISH);
        if (object.lastModifyTimeOUTSET != null)
            message.lastModifyTimeOUTSET = String(object.lastModifyTimeOUTSET);
        if (object.lastModifyTimeFINISH != null)
            message.lastModifyTimeFINISH = String(object.lastModifyTimeFINISH);
        if (object.serAuditList) {
            if (!Array.isArray(object.serAuditList))
                throw TypeError(".AftApplyOrderCondition.serAuditList: array expected");
            message.serAuditList = [];
            for (var i = 0; i < object.serAuditList.length; ++i)
                message.serAuditList[i] = String(object.serAuditList[i]);
        }
        if (object.serFileUrl) {
            if (!Array.isArray(object.serFileUrl))
                throw TypeError(".AftApplyOrderCondition.serFileUrl: array expected");
            message.serFileUrl = [];
            for (var i = 0; i < object.serFileUrl.length; ++i)
                message.serFileUrl[i] = String(object.serFileUrl[i]);
        }
        if (object.serEditorContent) {
            if (!Array.isArray(object.serEditorContent))
                throw TypeError(".AftApplyOrderCondition.serEditorContent: array expected");
            message.serEditorContent = [];
            for (var i = 0; i < object.serEditorContent.length; ++i)
                message.serEditorContent[i] = String(object.serEditorContent[i]);
        }
        if (object.afterNo != null)
            message.afterNo = String(object.afterNo);
        if (object.phone != null)
            message.phone = String(object.phone);
        if (object.orderStatus != null)
            message.orderStatus = String(object.orderStatus);
        if (object.afterSaleNo != null)
            message.afterSaleNo = String(object.afterSaleNo);
        if (object.serAuditStateList) {
            if (!Array.isArray(object.serAuditStateList))
                throw TypeError(".AftApplyOrderCondition.serAuditStateList: array expected");
            message.serAuditStateList = [];
            for (var i = 0; i < object.serAuditStateList.length; ++i)
                message.serAuditStateList[i] = String(object.serAuditStateList[i]);
        }
        if (object.serCreateTime != null)
            message.serCreateTime = String(object.serCreateTime);
        if (object.serTotalFeeLeft != null)
            message.serTotalFeeLeft = String(object.serTotalFeeLeft);
        if (object.serTotalFeeRight != null)
            message.serTotalFeeRight = String(object.serTotalFeeRight);
        if (object.serMoney != null)
            message.serMoney = String(object.serMoney);
        if (object.serMoneyLeft != null)
            message.serMoneyLeft = String(object.serMoneyLeft);
        if (object.serMoneyRight != null)
            message.serMoneyRight = String(object.serMoneyRight);
        if (object.receiverPhone != null)
            message.receiverPhone = String(object.receiverPhone);
        if (object.receiverName != null)
            message.receiverName = String(object.receiverName);
        return message;
    };

    /**
     * Creates a plain object from an AftApplyOrderCondition message. Also converts values to other types if specified.
     * @function toObject
     * @memberof AftApplyOrderCondition
     * @static
     * @param {AftApplyOrderCondition} message AftApplyOrderCondition
     * @param {$protobuf.IConversionOptions} [options] Conversion options
     * @returns {Object.<string,*>} Plain object
     */
    AftApplyOrderCondition.toObject = function toObject(message, options) {
        if (!options)
            options = {};
        var object = {};
        if (options.arrays || options.defaults) {
            object.uuidList = [];
            object.serAuditList = [];
            object.serFileUrl = [];
            object.serEditorContent = [];
            object.serAuditStateList = [];
        }
        if (options.defaults) {
            object.uuid = "";
            object.upper = "";
            object.validFlag = "";
            object.creator = "";
            object.createTime = "";
            object.creatorIp = "";
            object.lastModifier = "";
            object.lastModifyTime = "";
            object.lastModifierIp = "";
            object.ownerOrganize = "";
            object.ownerRole = "";
            object.serNum = "";
            object.serMemo = "";
            object.serAudit = "";
            object.serUsing = "";
            object.serLabels = "";
            object.createTimeOUTSET = "";
            object.createTimeFINISH = "";
            object.lastModifyTimeOUTSET = "";
            object.lastModifyTimeFINISH = "";
            object.afterNo = "";
            object.phone = "";
            object.orderStatus = "";
            object.afterSaleNo = "";
            object.serCreateTime = "";
            object.serTotalFeeLeft = "";
            object.serTotalFeeRight = "";
            object.serMoney = "";
            object.serMoneyLeft = "";
            object.serMoneyRight = "";
            object.receiverPhone = "";
            object.receiverName = "";
        }
        if (message.uuid != null && message.hasOwnProperty("uuid"))
            object.uuid = message.uuid;
        if (message.upper != null && message.hasOwnProperty("upper"))
            object.upper = message.upper;
        if (message.validFlag != null && message.hasOwnProperty("validFlag"))
            object.validFlag = message.validFlag;
        if (message.creator != null && message.hasOwnProperty("creator"))
            object.creator = message.creator;
        if (message.createTime != null && message.hasOwnProperty("createTime"))
            object.createTime = message.createTime;
        if (message.creatorIp != null && message.hasOwnProperty("creatorIp"))
            object.creatorIp = message.creatorIp;
        if (message.lastModifier != null && message.hasOwnProperty("lastModifier"))
            object.lastModifier = message.lastModifier;
        if (message.lastModifyTime != null && message.hasOwnProperty("lastModifyTime"))
            object.lastModifyTime = message.lastModifyTime;
        if (message.lastModifierIp != null && message.hasOwnProperty("lastModifierIp"))
            object.lastModifierIp = message.lastModifierIp;
        if (message.ownerOrganize != null && message.hasOwnProperty("ownerOrganize"))
            object.ownerOrganize = message.ownerOrganize;
        if (message.ownerRole != null && message.hasOwnProperty("ownerRole"))
            object.ownerRole = message.ownerRole;
        if (message.serNum != null && message.hasOwnProperty("serNum"))
            object.serNum = message.serNum;
        if (message.serMemo != null && message.hasOwnProperty("serMemo"))
            object.serMemo = message.serMemo;
        if (message.serAudit != null && message.hasOwnProperty("serAudit"))
            object.serAudit = message.serAudit;
        if (message.serUsing != null && message.hasOwnProperty("serUsing"))
            object.serUsing = message.serUsing;
        if (message.serLabels != null && message.hasOwnProperty("serLabels"))
            object.serLabels = message.serLabels;
        if (message.uuidList && message.uuidList.length) {
            object.uuidList = [];
            for (var j = 0; j < message.uuidList.length; ++j)
                object.uuidList[j] = message.uuidList[j];
        }
        if (message.createTimeOUTSET != null && message.hasOwnProperty("createTimeOUTSET"))
            object.createTimeOUTSET = message.createTimeOUTSET;
        if (message.createTimeFINISH != null && message.hasOwnProperty("createTimeFINISH"))
            object.createTimeFINISH = message.createTimeFINISH;
        if (message.lastModifyTimeOUTSET != null && message.hasOwnProperty("lastModifyTimeOUTSET"))
            object.lastModifyTimeOUTSET = message.lastModifyTimeOUTSET;
        if (message.lastModifyTimeFINISH != null && message.hasOwnProperty("lastModifyTimeFINISH"))
            object.lastModifyTimeFINISH = message.lastModifyTimeFINISH;
        if (message.serAuditList && message.serAuditList.length) {
            object.serAuditList = [];
            for (var j = 0; j < message.serAuditList.length; ++j)
                object.serAuditList[j] = message.serAuditList[j];
        }
        if (message.serFileUrl && message.serFileUrl.length) {
            object.serFileUrl = [];
            for (var j = 0; j < message.serFileUrl.length; ++j)
                object.serFileUrl[j] = message.serFileUrl[j];
        }
        if (message.serEditorContent && message.serEditorContent.length) {
            object.serEditorContent = [];
            for (var j = 0; j < message.serEditorContent.length; ++j)
                object.serEditorContent[j] = message.serEditorContent[j];
        }
        if (message.afterNo != null && message.hasOwnProperty("afterNo"))
            object.afterNo = message.afterNo;
        if (message.phone != null && message.hasOwnProperty("phone"))
            object.phone = message.phone;
        if (message.orderStatus != null && message.hasOwnProperty("orderStatus"))
            object.orderStatus = message.orderStatus;
        if (message.afterSaleNo != null && message.hasOwnProperty("afterSaleNo"))
            object.afterSaleNo = message.afterSaleNo;
        if (message.serAuditStateList && message.serAuditStateList.length) {
            object.serAuditStateList = [];
            for (var j = 0; j < message.serAuditStateList.length; ++j)
                object.serAuditStateList[j] = message.serAuditStateList[j];
        }
        if (message.serCreateTime != null && message.hasOwnProperty("serCreateTime"))
            object.serCreateTime = message.serCreateTime;
        if (message.serTotalFeeLeft != null && message.hasOwnProperty("serTotalFeeLeft"))
            object.serTotalFeeLeft = message.serTotalFeeLeft;
        if (message.serTotalFeeRight != null && message.hasOwnProperty("serTotalFeeRight"))
            object.serTotalFeeRight = message.serTotalFeeRight;
        if (message.serMoney != null && message.hasOwnProperty("serMoney"))
            object.serMoney = message.serMoney;
        if (message.serMoneyLeft != null && message.hasOwnProperty("serMoneyLeft"))
            object.serMoneyLeft = message.serMoneyLeft;
        if (message.serMoneyRight != null && message.hasOwnProperty("serMoneyRight"))
            object.serMoneyRight = message.serMoneyRight;
        if (message.receiverPhone != null && message.hasOwnProperty("receiverPhone"))
            object.receiverPhone = message.receiverPhone;
        if (message.receiverName != null && message.hasOwnProperty("receiverName"))
            object.receiverName = message.receiverName;
        return object;
    };

    /**
     * Converts this AftApplyOrderCondition to JSON.
     * @function toJSON
     * @memberof AftApplyOrderCondition
     * @instance
     * @returns {Object.<string,*>} JSON object
     */
    AftApplyOrderCondition.prototype.toJSON = function toJSON() {
        return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
    };

    return AftApplyOrderCondition;
})();

module.exports = $root;
